/*
sap.ui.define([
    "sap/ui/core/mvc/Controller",
	"sap/m/MessageToast"
], function (Controller, MessageToast) {
	"use strict";
 
	return Controller.extend("sap.ui.demo.wt.controller.App", {
 
		onShowHello : function () {
			// read msg from i18n model
			var oBundle = this.getView().getModel("i18n").getResourceBundle();
			var sRecipient = this.getView().getModel().getProperty("/recipient/name");
			var sMsg = oBundle.getText("helloMsg", [sRecipient]);
 
			// show message
			MessageToast.show(sMsg);
		}
	});
 
});
*/


sap.ui.define(["sap/ui/core/mvc/Controller"], function (Controller) {
               "use strict";
           return Controller.extend("sap.ui.demo.wt.controller.App", {
        	   onOpenDialog : function () {//为分离后的app做的对话框
       				this.getOwnerComponent().helloDialog.open(this.getView());//打开新对话框
       				console.log("onOpenDialog! From App.controller.js");
        	   }
           });
});

/*
sap.ui.define(["sap/ui/core/mvc/Controller"], function (Controller) {
           	"use strict";
           	return Controller.extend("sap.ui.demo.wt.controller.App", {
           		onOpenDialog : function () {
           			this.getOwnerComponent().helloDialog.open(this.getView());
           		}
           	});
});
*/

